package com.pcxm.cm.action;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Administrator
 *
 */
/**
 * @author Administrator
 *
 */
public class JsonPlugin extends ActionSupport{
	 private int i=123;
	    private String str="str";
	    private int[] array={1,2,3};
	    private ArrayList<String> list;
	    private Map<Object, Object> map;
	    
	    public String test(){
	        /*list = new ArrayList<String>();
	        list.add("red");
	        list.add("green");
	        list.add("yellow");*/
	    	map = new HashMap<Object, Object>();
	    	map.put(1, "1");
	    	map.put(2, "2");
	    	map.put(3, "3");
	        return SUCCESS;
	    }
	    
	    public int getI() {
	        return i;
	    }
	    public void setI(int i) {
	        this.i = i;
	    }
	    public String getStr() {
	        return str;
	    }
	    public void setStr(String str) {
	        this.str = str;
	    }
	    public int[] getArray() {
	        return array;
	    }
	    public void setArray(int[] array) {
	        this.array = array;
	    }
	    public ArrayList<String> getList() {
	        return list;
	    }
	    public void setList(ArrayList<String> list) {
	        this.list = list;
	    }

		public Map<Object, Object> getMap() {
			return map;
		}

		public void setMap(Map<Object, Object> map) {
			this.map = map;
		}
	    
}
